import myRequest from '..'

// 获取问卷的统计列表
export const getQuestionStatList = async (
  questionId: string,
  opt: { page: number; pageSize: number }
) => {
  return myRequest.get({
    url: `/stat/${questionId}`,
    params: opt,
  })
}

// 获取组件统计数据汇总
export const getComponentStat = async (questionId: string, componentId: string) => {
  return myRequest.get({
    url: `/stat/${questionId}/${componentId}`,
  })
}
